eric7.Plugins.CheckerPlugins.CodeStyleChecker.Security.Checks.huggingfaceUnsafeDownload
Module implementing checks for unsafe Hugging Face Hub downloads.
Global Attributes
Classes
Functions
| checkHuggingfaceUnsafeDownload |
Function to check for unsafe artifact download from Hugging Face Hub without immutable/reproducible revision pinning. |
| getChecks |
Public method to get a dictionary with checks handled by this module. |
checkHuggingfaceUnsafeDownload
checkHuggingfaceUnsafeDownload(reportError, context, _config)
Function to check for unsafe artifact download from Hugging Face Hub
without immutable/reproducible revision pinning.
- reportError (func)
-
function to be used to report errors
- context (SecurityContext)
-
security context object
- _config (dict)
-
dictionary with configuration data (unused)
getChecks
getChecks()
Public method to get a dictionary with checks handled by this module.
- Return:
-
dictionary containing checker lists containing checker function and
list of codes
- Return Type:
-
dict